package com.gcit.seniorWish.web.modular.examinee.warpper;

import com.gcit.seniorWish.web.common.constant.factory.ConstantFactory;
import com.gcit.seniorWish.core.base.warpper.BaseControllerWarpper;

import java.util.List;
import java.util.Map;

/**
 * 考生信息列表的包装类
 *
 * @author fengshuonan
 * @date 2017年2月19日10:59:02
 */
public class ExamineeWarpper extends BaseControllerWarpper {

	public ExamineeWarpper(List<Map<String, Object>> list) {
		super(list);
	}
	
	@Override
	public void warpTheMap(Map<String, Object> map) {
		map.put("schoolName", ConstantFactory.me().getSeniorSchoolById((String) map.get("seniorSchoolId")).getSchoolName());
		map.put("className", ConstantFactory.me().getSeniorSchoolClassById((String) map.get("seniorClassId")).getSenoirClassName());
	}
}
